package cn.myschool.java79.entity;

import java.io.Serializable;
import java.util.function.Supplier;

/**
 * @author oldliu
 * @since 1.0
 */
////对应于s_subject表
public class Subject implements Serializable {
    private long id;
    private long gradeid;//年级编号
    //年级名称？？？
    private int classhour;
    private String subjectname;
    private String gradename;
    public Subject(){}

    public long getId() {
        return id;
    }

    public String getGradename() {
        return gradename;
    }

    public void setGradename(String gradename) {
        this.gradename = gradename;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getGradeid() {
        return gradeid;
    }

    public void setGradeid(long gradeid) {
        this.gradeid = gradeid;
    }

    public int getClasshour() {
        return classhour;
    }

    public void setClasshour(int classhour) {
        this.classhour = classhour;
    }

    public String getSubjectname() {
        return subjectname;
    }

    public void setSubjectname(String subjectname) {
        this.subjectname = subjectname;
    }

    @Override
    public String toString() {
        return "Subject{" +
                "id=" + id +
                ", gradeid=" + gradeid +
                ", classhour=" + classhour +
                ", subjectname='" + subjectname + '\'' +
                ", gradename='" + gradename + '\'' +
                '}';
    }
}
